<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSellTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		//
		Schema::create('sell',function($table){
			$table->increments('id');
			$table->integer('客户')->unsigned();
			$table->foreign('客户')->references('id')->on('clients');
			$table->date('订货日期');
			$table->date('交货日期');
		    $table->softDeletes();
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//
		Schema::drop('sell');
	}

}
